package com.xc.smart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.smart.entity.User;
import com.xc.smart.utlis.R;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @author mtl
 * 2021/6/8
 */
public interface UserService extends IService<User> {

    /**
     * id
     * @param id
     * @return
     */
    User selectById(Integer id);


    /**
     * by name
     * @param name
     * @return
     */
    User selectByName(String name);

    /**
     * yonghu denglu
     * @param username
     * @param password
     * @param request
     * @return
     */
    R login(String username, String password,  HttpServletRequest request);

    /**
     * 根据手机号获取
     * @param username
     * @return
     */
    User queryByName(String username);
}
